<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>外贸合同</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <input type="checkbox" name="autoChapter" id="autoChapter" lay-filter="autoChapter" lay-skin="primary" title="盖上印章" checked/>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="javascript:window.print()"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdf"><i class="fa fa-file-pdf-o"></i> 导出PDF</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdfBatch"><i class="fa fa-file-pdf-o"></i> 一键三导</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdfMerge"><i class="fa fa-file-pdf-o"></i> 合并导出</button>
    </div>
    <div class="main">
        <div class="page-break">
            <div class="head">
                <div class="title22">外贸合同</div>
                <div class="title22">CONTRACT</div>
                <hr/>
            </div>
            <div id="conTempView"></div>
        </div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <table style="width: 100%">
        <tr>
            <td width="90">日期 Date： </td>
            <td width="40%">{{d.main.contractDate}}</td>
            <td width="90">合同编号</td>
            <td rowspan="2" class="title18">{{d.main.contrNo}}</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>Contract No.：</td>
        </tr>
        <tr>
            <td>买方 Buyer：</td>
            <td><div>{{d.main.buyerName}}</div><div>{{removeNull(d.main.buyerNameEn)}}</div></td>
            <td>卖方 Seller：</td>
            <td><div>{{removeNull(d.main.sellerName)}}</div><div>{{removeNull(d.main.sellerNameEn)}}</div></td>
        </tr>
        <tr>
            <td>地址 Address： </td>
            <td><div>{{removeNull(d.main.buyerAddress)}}</div><div>{{removeNull(d.main.buyerAddressEn)}}</div></td>
            <td>地址 Address：</td>
            <td><div>{{removeNull(d.main.sellerAddress)}}</div><div>{{removeNull(d.main.sellerAddressEn)}}</div></td>
        </tr>
        <tr>
            <td>电话 Tel：</td>
            <td>{{removeNull(d.main.buyerTel)}}</td>
            <td>电话 Tel：</td>
            <td>{{removeNull(d.main.sellerTel)}}</td>
        </tr>
        <tr>
            <td>传真 Fax：</td>
            <td>{{removeNull(d.main.buyerFax)}}</td>
            <td>传真 Fax：</td>
            <td>{{removeNull(d.main.sellerFax)}}</td>
        </tr>
    </table>
    <div style="text-align: left; margin-top: 8px; margin-bottom: 8px;">
        兹经买卖双方同意由卖方出售买方购进如下货物，并按下列条款签定本合同：<br/>
        This contract is made by and between the Buyers and Sellers, whereby the Buyers agree to buy and the Sellers agree to sell the undermentioned commodity according to the terms and conditions stipulated below:<br/>
    </div>
    <div class="printArea" style="margin-bottom: 8px">
        <table>
            <thead>
                <tr>
                    <th>行号No.</th>
                    <th>品名Name</th>
                    <th>品牌Brand</th>
                    <th>型号Model</th>
                    <th>数量Quantity</th>
                    <th>单位Unit</th>
                    <th>单价Price</th>
                    <th>总价Amount</th>
                    <th>币制Currency</th>
                </tr>
            </thead>
            <tbody>
                {{# $.each(d.members,function(i,o){}}
                <tr>
                    <td style="text-align: center">{{i+1}}</td>
                    <td>{{o.name}}</td>
                    <td>{{o.brand}}</td>
                    <td>{{o.model}}</td>
                    <td style="text-align: right">{{formatCurrency(o.quantity)}}</td>
                    <td style="text-align: center">{{o.unitName}}</td>
                    <td style="text-align: right">{{o.unitPrice}}</td>
                    <td style="text-align: right">{{formatCurrency(o.totalPrice)}}</td>
                    <td style="text-align: center">{{o.currencyName}}</td>
                </tr>
                {{#});}}
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="4">合计 Total：</td>
                    <td style="text-align: right">{{formatCurrency(d.tquantity)}}</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td style="text-align: right">{{formatCurrency(d.ttotalPrice)}}</td>
                    <td>&nbsp;</td>
                </tr>
            </tfoot>
        </table>
    </div>
    <table>
        <tr>
            <td width="25%" height="28">1.价格条款<br/>Term：</td>
            <td width="25%">{{removeNull(d.main.transactionModeDesc)}}</td>
            <td width="25%">2.包装<br/>Packing：</td>
            <td width="25%">符合进口标准<br/>In line with import standards</td>
        </tr>
        <tr>
            <td height="35">3.装运唛头<br/>Shipping Mark：</td>
            <td>{{removeNull(d.main.markNo)}}</td>
            <td> 4.目的地：<br/>Destination：</td>
            <td>{{removeNull(d.main.goodsPlace)}}</td>
        </tr>
        <tr>
            <td height="35">5.装运期限<br/>Shipping Date：</td>
            <td>{{removeNull(d.main.shipmentDate)}}</td>
            <td height="35">6.保险<br/>Insurance：</td>
            <td>买方承付<br/>PAID BY BUYER</td>
        </tr>
        <tr>
            <td>7.付款方式<br/>Term of Payment：</td>
            <td>TT</td>
        </tr>
        <tr>
            <td height="35"align="left" colspan="4">8.合同有效期：
                经双方签字、盖章后生效，有效期至 {{d.main.validityDate}}<br/>
                This contract, when duly signed by both parties, shall come into effect, expiry date shall be {{d.main.validityDate}}</td>
        </tr>
        <tr>
            <td colspan="4">
                9.如进口货物存在任何质量问题，在进口后三年内双方协商处理（退货、换货、整机免费维修），所产生的费用由卖方负责。<br>
                The improted goods with any quality problems can be returned,replaced or the complete machine shall be repai by negotiation process within three years.ALL the expense should be paid by the seller.
            </td>
        </tr>
        <tr>
            <td colspan="4">
                10.本合同一式两份，双方各执一份。<br/>
                This contract is in two copies.
            </td>
        </tr>
    </table>
    <div style="position: absolute;width: 98%;overflow: hidden;height: 200px;">
        <table style="width: 100%;position: inherit;z-index: 10">
            <tr>
                <td height="120" width="50%">
                    <div style="float:left">买方 Buyer:&nbsp;&nbsp;</div>
                    <div style="float:left">
                        {{d.main.buyerName}}
                        {{# if(!isEmpty(d.main.buyerNameEn)){}}
                            <br/>{{d.main.buyerNameEn}}
                        {{#}}}
                    </div>
                </td>
                <td width="50%">
                    <div style="float:left">卖方 Seller:&nbsp;&nbsp;</div>
                    <div style="float:left">
                        {{# if(!isEmpty(d.main.sellerName)){}}
                        {{d.main.sellerName}}<br/>
                        {{#}}}
                        {{d.main.sellerNameEn}}
                    </div>
                </td>
            </tr>
            <tr>
                <td height="30">签字<br/>Authorized Signature： </td>
                <td>签字<br/>Authorized Signature：</td>
            </tr>
        </table>
        {{# if(!isEmpty(d.main.buyerChapter)){}}
        <div class="chapter1 chapterArea" id="buyerChapter" style="position: inherit;z-index: -1;top:0;left: 60px"><img src="{{d.main.buyerChapter}}"></div>
        {{#}}}
        {{# if(!isEmpty(d.main.sellerChapter)){}}
        <div class="chapter2 chapterArea" id="sellerChapter" style="position: inherit;z-index: -1;top: 20px;right: 200px;"><img src="{{d.main.sellerChapter}}"></div>
        {{#}}}
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/customs/declaration/imp/print-contract.js?v=202001010101"></script>
</body>
</html>